<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../img/asset-favico.ico">
    <title>预约详情</title>
    <link rel="stylesheet" href="../css/page-health-orderDetail.css" />
    <script src="../plugins/vue/vue.js"></script>
    <script src="../plugins/vue/axios-0.18.0.js"></script>
    <script src="../plugins/healthmobile.js"></script>
    <script>
        var id = getUrlParam("id");//根据请求URL中的参数名称获取对应的值
    </script>
</head>
<body data-spy="scroll" data-target="#myNavbar" data-offset="150">
<div id="app" class="app">
    <!-- 页面头部 -->
    <div class="top-header">
        <span class="f-left"><i class="icon-back" onclick="history.go(-1)"></i></span>
        <span class="center">传智健康</span>
        <span class="f-right"><a href="/pages/index.html"><font color="white">回到首页</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class="icon-more"><a href="/logout"><font color="white">退出</font></a></i></span>
    </div>
    <!-- 页面内容 -->
    <div class="contentBox">
        <div class="card">
            <div class="project-img">
                <img :src="imgUrl" width="100%" height="100%" />
            </div>
            <div class="project-text">
                <h4 class="tit">{{recordDetail.setmealName}}</h4>
                <p class="subtit">{{recordDetail.remark}}</p>
                <p class="subtit"><font color="#dc143c">套餐价格: {{recordDetail.setmealPrice}}</font></p>
                <p class="keywords">
                    <span>{{recordDetail.sex == '0' ? '性别不限' : recordDetail.sex == '1' ? '男':'女'}}</span>
                    <span>{{recordDetail.age}}</span>
                </p>
            </div>
        </div>
        <div class="table-listbox">
            <div class="box-title">
                <i class="icon-zhen"><span class="path1"></span><span class="path2"></span></i>
                <span>预约人: {{recordDetail.memberName}}</span>
            </div>
            <div class="box-title">
                <i class="icon-zhen"><span class="path1"></span><span class="path2"></span></i>
                <span>预约方式: {{recordDetail.orderType}}</span>
            </div>
            <div class="box-title">
                <i class="icon-zhen"><span class="path1"></span><span class="path2"></span></i>
                <span>预约时间: {{recordDetail.orderDate}}</span>
            </div>
            <div class="box-title">
                <i class="icon-zhen"><span class="path1"></span><span class="path2"></span></i>
                <span>到诊情况: {{recordDetail.orderStatus}}</span>
            </div>
            <div class="box-title">
                <i class="icon-zhen"><span class="path1"></span><span class="path2"></span></i>
                <span>预约体检机构: {{recordDetail.address}}</span>
            </div>

            <div class="box-table">
                <div class="box-button">
                    <a @click="toRecord_list()" class="order-btn">点击查看所有套餐</a>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    var vue = new Vue({
        el:'#app',
        data:{
            imgUrl:'http://qvg9clowq.hd-bkt.clouddn.com/2841946b-81d4-4e2c-9a6e-dc91553b0cd9.jpg',
            // recordDetail:{setmealName:'套餐a',setmealPrice:'600',sex:'1',age:'10-20',remark:'一般套餐',img:'2841946b-81d4-4e2c-9a6e-dc91553b0cd9.jpg',
            //     memberName:'花花',orderType:'微信预约',orderDate:'2019-09-18',orderStatus:'未到诊',address:'北京'}
            recordDetail:{}
        },
        methods:{
            toRecord_list(){
                window.location.href='checkrecord_list.html';
            }
        },
        mounted(){
            axios.get("/order/findRecordDetailById.do?id=" + id).then((response) => {
                if(response.data.flag){
                    this.recordDetail = response.data.data;
                    this.imgUrl = 'http://qvg9clowq.hd-bkt.clouddn.com/' + this.recordDetail.img;
                }
            });
        }
    });
</script>
</body>